package com.gary.mapper;

import com.gary.entity.Employee;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author pengrui
 * @date 2020/11/27 - 9:43
 */
@Mapper
public interface IEmployeeMapper {

    /**
     *  更新员工
     * @param employee
     * @return
     */
    Integer updateEmp(Employee employee);

    /**
     *  通过id查询
     * @param id
     * @return
     */
    Employee queryById(Integer id);

    /**
     *  通过id删除
     * @param id
     * @return
     */
    Integer delEmp(Integer id);

    /**
     *  通过lastName查询
     * @param lastName
     * @return
     */
    Employee queryByLastName(String lastName);
}
